<?php
echo form_open('staffs/save/'.$payroll_id,array('id'=>'staff_form'));
?>
<fieldset id="supplier_basic_info">
<legend><?php echo $this->lang->line("staffs_payroll_info"); ?></legend>
<table class="tablesorter" id="sortable_table"> 
	<tr><td><?php echo form_label($this->lang->line('date').':', 'date'); ?></td><td><?php echo $date ;?></td></tr>
	<tr><td>&nbsp;</td><td></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_basic_wage').':', 'staffs_basic_wage'); ?></td><td><?php echo to_currency($basic_wages,$this->config->item('currency_inuse')) ;?></td></tr>
	<?php 
if(!empty($allowance))
{
	foreach($allowance as $key => $value)
	{
		if(!empty($key))
		{ ?>
			<tr><td><?php echo form_label(ucwords(strtolower($key))); ?></td><td><?php echo to_currency($value,$this->config->item('currency_inuse')) ;?></td></tr>
<?php 	}		
								
	}
}
?>
	<tr><td><?php echo form_label($this->lang->line('staffs_allowances').':', 'staffs_allowances'); ?></td><td><?php echo to_currency($allowance_totals,$this->config->item('currency_inuse')) ;?></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_gross_pay').':', 'staffs_gross_pay'); ?></td><td><?php echo to_currency($gross_pay,$this->config->item('currency_inuse')) ;?></td></tr>
<tr><td>&nbsp;</td><td></td></tr>
	<?php 
if(!empty($ssf_percent_value_pair))
{
	foreach($ssf_percent_value_pair as $key => $value)
	{
		if(!empty($key))
		{ ?>
			<tr><td><?php echo form_label('SSF '.ucwords(strtolower($key)).'%&nbsp; @ &nbsp;'.$this->lang->line('staffs_basic_wage')); ?></td><td><?php echo to_currency($value,$this->config->item('currency_inuse')) ;?></td></tr>
<?php 	}		
								
	}
}
?>
	<tr><td><?php echo form_label($this->lang->line('staffs_net_wage').':', 'staffs_net_wage'); ?></td><td><?php echo to_currency($net_basic_wage,$this->config->item('currency_inuse')) ;?></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_taxable_income').':', 'staffs_taxable_income'); ?></td><td><?php echo to_currency($taxable_income,$this->config->item('currency_inuse')) ;?></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_basic_tax').':', 'staffs_basic_tax'); ?></td><td><?php echo to_currency($tax,$this->config->item('currency_inuse')) ;?></td></tr>
<?php 
if(!empty($deductions))
{
	foreach($deductions as $key => $value)
	{
		if(!empty($key))
		{ ?>
			<tr><td><?php echo form_label(ucwords(strtolower($key))); ?></td><td><?php echo to_currency($value,$this->config->item('currency_inuse')) ;?></td></tr>
<?php 	}		
								
	}
}
?>
	<tr><td><?php echo form_label($this->lang->line('staffs_deductions').':', 'staffs_deductions'); ?></td><td><?php echo to_currency($deduction_totals,$this->config->item('currency_inuse')) ;?></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_total_deductions').':', 'staffs_total_deductions'); ?></td><td><?php echo to_currency($total_payroll_deductions,$this->config->item('currency_inuse')) ;?></td></tr>
<tr><td>&nbsp;</td><td></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_net_pay').':', 'staffs_net_pay'); ?></td><td><?php echo to_currency($net_pay ,$this->config->item('currency_inuse'));?></td></tr>
	<tr><td><?php echo form_label($this->lang->line('staffs_total_ssf_payable').':', 'staffs_total_ssf_payable'); ?></td><td><?php echo to_currency($total_ssf_payable,$this->config->item('currency_inuse')) ;?></td></tr>
	
</table>

</fieldset>
<?php 
echo form_close();
?>